/**
 * \file CodeProfile.cpp
 * \brief CodeProfile definition class for Linux platforms
 * \author Edouard ROGE
 * \date 16 October 2012
 */

#include "Profiler.h"
#include "CodeProfile.h"


CodeProfile::CodeProfile(const char * _name, uint32 _parentThreadId)
{
	m_iIndexTimeMeasure=Profiler::GetInstance().StartNewTimeMeasure(_name, pthread_self(), _parentThreadId);
}

CodeProfile::~CodeProfile()
{
	Profiler::GetInstance().StopTimeMeasure(m_iIndexTimeMeasure, pthread_self());
}
